package com.example.ceramics.database.dao;

import com.example.ceramics.entity.GoodsEntity;
import com.example.ceramics.entity.UserEntity;

import java.util.List;

public interface IGoodsDao {
    int addGoods(GoodsEntity goods);
    int deleteGoods(int goodsId);
    int updateGoods(GoodsEntity goods);
    boolean hasGoods(int goodsId);
    GoodsEntity getGoods(int goodsId);
    List<GoodsEntity> listAllGoods();
    List<GoodsEntity> listGoodsByType(String type);
    void addAllGoods();
    boolean isEmpty();
    List<GoodsEntity> listRandom(int num);
    List<GoodsEntity> searchGoods(String searchWord);
}
